import request from '../utils/request'
const api_name = "/comment"
export default {
    // 评论分页显示
    getPagedList(page, limit, courseId) {
        return request({
            url: `${api_name}/list/${page}/${limit}/${courseId}`,
            method: "get",
        })
    },
    //添加评论
    addComment(comment) {
        return request({
            url: `${api_name}`,
            method: "post",
            data: comment
        })
    }
}